include $(BASEDIR)/Rules.mk
+
+# SMH: need to ensure cciss init function called /after/ generic blkdev
+# stuff in ll_rw_blk etc. Linux barking link-order invocation of init
+# functions means we need to explicitly order things here.
+OBJS := blkpg.o elevator.o ll_rw_blk.o xen_vbd.o genhd.o xen_block.o
+OBJS += cciss.o cciss_scsi.o
+
+
default: $(OBJS)
$(LD) -r -o driver.o $(OBJS)
}
if (hba[ctlr]->drv[logvol].raid_level > 5)
hba[ctlr]->drv[logvol].raid_level = RAID_UNKNOWN;
+
printk(KERN_INFO " heads= %d, sectors= %d, cylinders= %d RAID %s\n\n",
- hba[ctlr]->drv[logvol].heads,
- hba[ctlr]->drv[logvol].sectors,
- hba[ctlr]->drv[logvol].cylinders,
- raid_label[hba[ctlr]->drv[logvol].raid_level]);
+ hba[ctlr]->drv[logvol].heads,
+ hba[ctlr]->drv[logvol].sectors,
+ hba[ctlr]->drv[logvol].cylinders,
+ raid_label[hba[ctlr]->drv[logvol].raid_level]);
+
/* special case for c?d0, which may be opened even when
it does not "exist". In that case, don't mess with usage count.
for(i=max_p-1; i>=0; i--) {
int minor = start+i;
+
invalidate_device(MKDEV(hba[ctlr]->major, minor), 1);
gdev->part[minor].start_sect = 0;
gdev->part[minor].nr_sects = 0;
hba[ctlr]->hardsizes[minor] = block_size;
}
+
+
++hba[ctlr]->num_luns;
gdev->nr_real = hba[ctlr]->highest_lun + 1;
+
+
/* setup partitions per disk */
grok_partitions(gdev, logvol, MAX_PART,
hba[ctlr]->drv[logvol].nr_blocks);
h->maxSG = seg;
#ifdef CCISS_DEBUG
- printk(KERN_DEBUG "cciss: Submitting %d sectors in %d segments\n", sect, seg);
+ printk(KERN_DEBUG "cciss: Submitting %d sectors in %d segments\n", creq->nr_sectors, seg);
#endif /* CCISS_DEBUG */
c->Header.SGList = c->Header.SGTotal = seg;
kfree(ld_buff);
kfree(size_buff);
kfree(inq_buff);
-}
+}
/* Function to find the first free pointer into our hba[] array */
/* Returns -1 if no free entries are left. */